<%@ page import="org.openehr.am.archetype.constraintmodel.*" %>
<%@ page import="org.openehr.am.archetype.constraintmodel.primitive.*" %>


in: cObject (${cObject.class}) (${cObject.rmTypeName})<br/>

  <g:if test="${cObject instanceof CComplexObject}">
      <g:render template="templates/cComplexObject"
                model="[cComplexObject: cObject, archetype: archetype, archetypeService:archetypeService]" />
  </g:if>
  <g:if test="${cObject instanceof CDomainType}">
      <g:render template="templates/cDomainType"
                model="[cDomainType: cObject, archetype: archetype, archetypeService:archetypeService]" />
  </g:if>
  <g:if test="${cObject instanceof CPrimitiveObject}">
      <g:render template="templates/cPrimitiveObject"
                model="[cPrimitiveObject: cObject, archetype: archetype, archetypeService:archetypeService]" />
  </g:if>
  <g:if test="${cObject instanceof ArchetypeSlot}">
      <g:render template="templates/archetypeSlot"
                model="[archetypeSlot: cObject, archetype: archetype, archetypeService:archetypeService]" />
  </g:if>
  <g:if test="${cObject instanceof ArchetypeInternalRef}">
      <g:render template="templates/archetypeInternalRef"
                model="[ref: cObject, archetype: archetype, archetypeService:archetypeService]" />
  </g:if>
